#include<stdio.h>

int main(void)
{
	int num1,num2,num3;
	
	scanf("%d%d%d",&num1,&num2,&num3);
	printf("%-9d%-9d%-9d\n%-9d%-9d%-9d\n%-9d%-9d%-9d\n",num1,num1*num1,num1*num1*num1,num2,num2*num2,num2*num2*num2,num3,num3*num3,num3*num3*num3);
	
	return 0;
}
